<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="./pages/styles/style2.css" />
<title>Create Job</title>

</head>

<body>
	<jsp:directive.include file="Header.jsp" />
	<jsp:directive.include file="Navigation.jsp" />

	<div class="content">
		<form action="./AddJob" method="post" class="add">
			<h1>
				Add Job <img src="./pages//images/logo.png" align="right"
					width="130" height="40">
			</h1>

			<label> <span>Position Title* :</span> <input id="title"
				type="text" name="title" placeholder="Enter the job-position title" />
			</label> <label> <span>Max Candidates :</span> <input id="candidates"
				type="text" name="candidates"
				placeholder="Enter max candidates number" />
			</label> <label> <span>Date :</span> <input type="date" name="date" />

			</label>
			<c:if test="${role =='general' }">
				<label> <span>Opened :</span> <input type="checkbox"
					name="opened" value="true" />
				</label>
				<p></p>
				<label> <span>Approved :</span> <input type="checkbox"
					name=approved " value="true" />
				</label>
			</c:if>
			<br></br>
			<h1>Job description</h1>

			<label> <span>Department* :</span>
			</label> <label> <select name="selection">
					<c:forEach var="department" items="${departmentList}">
						<option value="${department.id}">${department.name}</option>
					</c:forEach>
			</select>
			</label> <label> <span>Project :</span> <input id="project"
				type="text" name="project"
				placeholder="Enter project's name (optional)" />
			</label> <label> <span>Requirements* :</span> <textarea
					id="requirements" type="text" name="requirements"
					placeholder="Enter requirements"></textarea>
			</label> <label> <span>Responsabilities* :</span> <textarea
					id="responsabilities" type="text" name="responsabilities"
					placeholder="Enter responsabilities"></textarea>
			</label> <label> <span>&nbsp;</span> <input name="add_button"
				type="submit" class="button" value="Add" /> <input type="button"
				class="button" value="Cancel"
				onclick="window.location.href='ShowJobs'" />
			</label>
		</form>
	</div>
</body>
</html>